<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TDataTimeFormat类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="class_t_data_time_format-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TDataTimeFormat类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a72ce3d35971c1faf27d79fe4d74788ba"><td class="memItemLeft" align="right" valign="top"><a id="a72ce3d35971c1faf27d79fe4d74788ba"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TDataTimeFormat</b> (data_time_format *nativeObj)</td></tr>
<tr class="separator:a72ce3d35971c1faf27d79fe4d74788ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb6cda428c2ea483a1244c52c04a415d"><td class="memItemLeft" align="right" valign="top"><a id="acb6cda428c2ea483a1244c52c04a415d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TDataTimeFormat</b> (const data_time_format *nativeObj)</td></tr>
<tr class="separator:acb6cda428c2ea483a1244c52c04a415d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a07309c8acadf5502c732c2cf0e4be446"><td class="memItemLeft" align="right" valign="top"><a id="a07309c8acadf5502c732c2cf0e4be446"></a>
static <a class="el" href="class_t_data_time_format.html">TDataTimeFormat</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (data_time_format *nativeObj)</td></tr>
<tr class="separator:a07309c8acadf5502c732c2cf0e4be446"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9099513250f330bd1e310041e06d0517"><td class="memItemLeft" align="right" valign="top"><a id="a9099513250f330bd1e310041e06d0517"></a>
static <a class="el" href="class_t_data_time_format.html">TDataTimeFormat</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const data_time_format *nativeObj)</td></tr>
<tr class="separator:a9099513250f330bd1e310041e06d0517"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:ada5c1e0835e21e42c0c7b65276cf6a0b"><td class="memItemLeft" align="right" valign="top"><a id="ada5c1e0835e21e42c0c7b65276cf6a0b"></a>
data_time_format *&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:ada5c1e0835e21e42c0c7b65276cf6a0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>格式化日期时间。</p>
<p>格式规则： Y 代表年(完整显示) M 代表月(1-12) D 代表日(1-31) h 代表时(0-23) m 代表分(0-59) s 代表秒(0-59) w 代表星期(0-6) W 代表星期的英文缩写(支持翻译) YY 代表年(只显示末两位) MM 代表月(01-12) DD 代表日(01-31) hh 代表时(00-23) mm 代表分(00-59) ss 代表秒(00-59) MMM 代表月的英文缩写(支持翻译)</p>
<p>如 日期时间为：2018/11/12 9:10:20 "Y/M/D"显示为"2018/11/12" "Y-M-D"显示为"2018-11-12" "Y-M-D h:m:s"显示为"2018-11-12 9:10:20" "Y-M-D hh:mm:ss"显示为"2018-11-12 09:10:20" </p>
</div><hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
